<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>简介</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <script type="text/javascript">
	$(function(){
		$("#formobj").submit(function(){
			var file_upload = $("#file_upload").val();
			
			if($.trim(file_upload) == ""){
				tip("请选择上载文件.");
				return false;
			}
		});
	})
</script>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" beforeSubmit="upload" >
					<input id="id" name="id" type="hidden" value="${uLegalIntroductionPage.id }">
					<input id="updateName" name="updateName" type="hidden" value="${uLegalIntroductionPage.updateName }">
					<input id="updateDate" name="updateDate" type="hidden" value="${uLegalIntroductionPage.updateDate }">
					<input id="updateBy" name="updateBy" type="hidden" value="${uLegalIntroductionPage.updateBy }">
					<input id="createName" name="createName" type="hidden" value="${uLegalIntroductionPage.createName }">
		<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
					
						<tr>
					<td align="right">
						<label class="Validform_label">
							图像:
						</label>
					</td>
					<td class="value">
					<div class="form" id="filediv" style="background:url(${uLegalIntroductionPage.headImg }) no-repeat; height: 50px;"></div>
			<div class="form"><t:upload name="headImg" uploader="uLegalIntroductionController.do?doUpdate" extend="image.*" id="file_upload" formId="formobj"></t:upload></div>
					      		<!-- <input id="headImg" name="headImg" type="text" style="width: 150px" class="inputxt" 
					      						/> -->
	<%-- 	<t:upload name="file_upload" uploader="iconController.do?saveOrUpdateIcon" extend="*.png;" id="file_upload" formId="formobj"></t:upload>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">headImg</label> --%>
						</td>
				</tr>
					
					<tr>
						<td align="right">
							<label class="Validform_label">
								标题:
							</label>
						</td>
						<td class="value">
						     	 <input id="title" name="title" type="text" style="width: 150px" class="inputxt"  
						     	 ignore="ignore" 
						     	 value='${uLegalIntroductionPage.title}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">标题</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								内容:
							</label>
						</td>
						<td class="value">
									<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.config.js"></script>
									<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.all.min.js"></script>
							    	<textarea name="content" id="content" style="width: 650px;height:300px">${uLegalIntroductionPage.content}</textarea>
								    <script type="text/javascript">
								        var editor = UE.getEditor('content');
								    </script>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">内容</label>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
  <script src = "webpage/com/legal/ulegalintroduction/uLegalIntroduction.js"></script>		
